namespace Northwind.SL
{
	public static class ConvertExtension
	{
		public static Northwind.SL.Model.CustomerKey Convert(this Northwind.NET.Model.CustomerKey src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.CustomerKey();
			dest0.Sequence = src0.Sequence;
			dest0.ID = src0.ID;
			return dest0;
		}
		public static Northwind.SL.Model.ProductKey Convert(this Northwind.NET.Model.ProductKey src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.ProductKey();
			dest0.Sequence = src0.Sequence;
			dest0.ID = src0.ID;
			return dest0;
		}
		public static Northwind.SL.Model.Product Convert(this Northwind.NET.Model.Product src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Product();
			dest0.ID = src0.ID;
			src1 = src0.PermissionType;
			if (src1 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
			{
				dest1 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
				dest0.PermissionType = dest1;
			}
			src1 = src0.SecureName;
			if (src1 is Northwind.NET.Security.SecureString)
			{
				dest1 = new Northwind.SL.Security.SecureString();
				src2 = src1.SecurityHandle;
				if (src2 is Northwind.NET.Security.SecurityHandle)
				{
					dest2 = new Northwind.SL.Security.SecurityHandle();
					dest2.Domain = src2.Domain;
					dest1.SecurityHandle = dest2;
				}
				dest1.Value = src1.Value;
				dest0.SecureName = dest1;
			}
			dest0.Name = src0.Name;
			src1 = src0.SecurityHandle;
			if (src1 is Northwind.NET.Security.SecurityHandle)
			{
				dest1 = new Northwind.SL.Security.SecurityHandle();
				dest1.Domain = src1.Domain;
				dest0.SecurityHandle = dest1;
			}
			dest0.SupplierID = src0.SupplierID;
			dest0.CategoryID = src0.CategoryID;
			dest0.QuantityPerUnit = src0.QuantityPerUnit;
			dest0.UnitPrice = src0.UnitPrice;
			dest0.UnitsInStock = src0.UnitsInStock;
			dest0.UnitsOnOrder = src0.UnitsOnOrder;
			dest0.ReorderLevel = src0.ReorderLevel;
			dest0.Discontinued = src0.Discontinued;
			dest0.RowTimeStamps = src0.RowTimeStamps;
			src1 = src0.Supplier;
			if (src1 is Northwind.NET.Model.Supplier)
			{
				dest1 = new Northwind.SL.Model.Supplier();
				dest1.ID = src1.ID;
				dest1.Name = src1.Name;
				src2 = src1.SecureName;
				if (src2 is Northwind.NET.Security.SecureString)
				{
					dest2 = new Northwind.SL.Security.SecureString();
					src3 = src2.SecurityHandle;
					if (src3 is Northwind.NET.Security.SecurityHandle)
					{
						dest3 = new Northwind.SL.Security.SecurityHandle();
						dest3.Domain = src3.Domain;
						dest2.SecurityHandle = dest3;
					}
					dest2.Value = src2.Value;
					dest1.SecureName = dest2;
				}
				src2 = src1.PermissionType;
				if (src2 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
				{
					dest2 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
					dest1.PermissionType = dest2;
				}
				dest1.ContactName = src1.ContactName;
				dest1.ContactTitle = src1.ContactTitle;
				dest1.Address = src1.Address;
				dest1.City = src1.City;
				dest1.Region = src1.Region;
				dest1.PostalCode = src1.PostalCode;
				dest1.Country = src1.Country;
				dest1.Phone = src1.Phone;
				dest1.Fax = src1.Fax;
				dest1.HomePage = src1.HomePage;
				dest1.RowTimeStamps = src1.RowTimeStamps;
				if (src1.Products != null)
				{
					dest1.Products = new System.Collections.Generic.List<Northwind.SL.Model.Product>();
					for (int i1 = 0; i1 < src1.Products.Count; i1++)
					{
						src2 = src1.Products[i1];
						dest2 = new Northwind.SL.Model.Product();
						dest2.ID = src2.ID;
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						dest2.Name = src2.Name;
						src3 = src2.SecurityHandle;
						if (src3 is Northwind.NET.Security.SecurityHandle)
						{
							dest3 = new Northwind.SL.Security.SecurityHandle();
							dest3.Domain = src3.Domain;
							dest2.SecurityHandle = dest3;
						}
						dest2.SupplierID = src2.SupplierID;
						dest2.CategoryID = src2.CategoryID;
						dest2.QuantityPerUnit = src2.QuantityPerUnit;
						dest2.UnitPrice = src2.UnitPrice;
						dest2.UnitsInStock = src2.UnitsInStock;
						dest2.UnitsOnOrder = src2.UnitsOnOrder;
						dest2.ReorderLevel = src2.ReorderLevel;
						dest2.Discontinued = src2.Discontinued;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						dest1.Products.Add(dest2);
					}
				}
				dest0.Supplier = dest1;
			}
			return dest0;
		}
		public static Northwind.SL.Model.Customer Convert(this Northwind.NET.Model.Customer src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Customer();
			dest0.ID = src0.ID;
			dest0.Code = src0.Code;
			dest0.Name = src0.Name;
			src1 = src0.SecureName;
			if (src1 is Northwind.NET.Security.SecureString)
			{
				dest1 = new Northwind.SL.Security.SecureString();
				src2 = src1.SecurityHandle;
				if (src2 is Northwind.NET.Security.SecurityHandle)
				{
					dest2 = new Northwind.SL.Security.SecurityHandle();
					dest2.Domain = src2.Domain;
					dest1.SecurityHandle = dest2;
				}
				dest1.Value = src1.Value;
				dest0.SecureName = dest1;
			}
			src1 = src0.PermissionType;
			if (src1 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
			{
				dest1 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
				dest0.PermissionType = dest1;
			}
			src1 = src0.SecurityHandle;
			if (src1 is Northwind.NET.Security.SecurityHandle)
			{
				dest1 = new Northwind.SL.Security.SecurityHandle();
				dest1.Domain = src1.Domain;
				dest0.SecurityHandle = dest1;
			}
			dest0.ContactName = src0.ContactName;
			dest0.ContactTitle = src0.ContactTitle;
			dest0.Address = src0.Address;
			dest0.City = src0.City;
			dest0.Region = src0.Region;
			dest0.PostalCode = src0.PostalCode;
			dest0.Country = src0.Country;
			dest0.Phone = src0.Phone;
			dest0.Fax = src0.Fax;
			dest0.RowTimeStamps = src0.RowTimeStamps;
			if (src0.Orders != null)
			{
				dest0.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
				for (int i0 = 0; i0 < src0.Orders.Count; i0++)
				{
					src1 = src0.Orders[i0];
					dest1 = new Northwind.SL.Model.Order();
					dest1.ID = src1.ID;
					dest1.CustomerId = src1.CustomerId;
					dest1.EmployeeID = src1.EmployeeID;
					dest1.OrderDate = src1.OrderDate;
					dest1.RequiredDate = src1.RequiredDate;
					dest1.ShippedDate = src1.ShippedDate;
					dest1.ShipperId = src1.ShipperId;
					dest1.Freight = src1.Freight;
					dest1.ShipName = src1.ShipName;
					dest1.ShipAddress = src1.ShipAddress;
					dest1.ShipCity = src1.ShipCity;
					dest1.ShipRegion = src1.ShipRegion;
					dest1.ShipPostalCode = src1.ShipPostalCode;
					dest1.ShipCountry = src1.ShipCountry;
					dest1.RowTimeStamp = src1.RowTimeStamp;
					src2 = src1.Customer;
					if (src2 is Northwind.NET.Model.Customer)
					{
						dest2 = new Northwind.SL.Model.Customer();
						dest2.ID = src2.ID;
						dest2.Code = src2.Code;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						src3 = src2.SecurityHandle;
						if (src3 is Northwind.NET.Security.SecurityHandle)
						{
							dest3 = new Northwind.SL.Security.SecurityHandle();
							dest3.Domain = src3.Domain;
							dest2.SecurityHandle = dest3;
						}
						dest2.ContactName = src2.ContactName;
						dest2.ContactTitle = src2.ContactTitle;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.Phone = src2.Phone;
						dest2.Fax = src2.Fax;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Employee;
								if (src4 is Northwind.NET.Model.Employee)
								{
									dest4 = new Northwind.SL.Model.Employee();
									dest4.ID = src4.ID;
									dest4.LastName = src4.LastName;
									dest4.FirstName = src4.FirstName;
									dest4.Title = src4.Title;
									dest4.TitleOfCourtesy = src4.TitleOfCourtesy;
									dest4.BirthDate = src4.BirthDate;
									dest4.HireDate = src4.HireDate;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.HomePhone = src4.HomePhone;
									dest4.Extension = src4.Extension;
									dest4.Photo = src4.Photo;
									dest4.Notes = src4.Notes;
									dest4.ReportsTo = src4.ReportsTo;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Shipper;
											if (src6 is Northwind.NET.Model.Shipper)
											{
												dest6 = new Northwind.SL.Model.Shipper();
												dest6.ID = src6.ID;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												dest6.Phone = src6.Phone;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Shipper = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Employee = dest4;
								}
								src4 = src3.Shipper;
								if (src4 is Northwind.NET.Model.Shipper)
								{
									dest4 = new Northwind.SL.Model.Shipper();
									dest4.ID = src4.ID;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									dest4.Phone = src4.Phone;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Employee;
											if (src6 is Northwind.NET.Model.Employee)
											{
												dest6 = new Northwind.SL.Model.Employee();
												dest6.ID = src6.ID;
												dest6.LastName = src6.LastName;
												dest6.FirstName = src6.FirstName;
												dest6.Title = src6.Title;
												dest6.TitleOfCourtesy = src6.TitleOfCourtesy;
												dest6.BirthDate = src6.BirthDate;
												dest6.HireDate = src6.HireDate;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.HomePhone = src6.HomePhone;
												dest6.Extension = src6.Extension;
												dest6.Photo = src6.Photo;
												dest6.Notes = src6.Notes;
												dest6.ReportsTo = src6.ReportsTo;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Employee = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Shipper = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Customer = dest2;
					}
					src2 = src1.Employee;
					if (src2 is Northwind.NET.Model.Employee)
					{
						dest2 = new Northwind.SL.Model.Employee();
						dest2.ID = src2.ID;
						dest2.LastName = src2.LastName;
						dest2.FirstName = src2.FirstName;
						dest2.Title = src2.Title;
						dest2.TitleOfCourtesy = src2.TitleOfCourtesy;
						dest2.BirthDate = src2.BirthDate;
						dest2.HireDate = src2.HireDate;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.HomePhone = src2.HomePhone;
						dest2.Extension = src2.Extension;
						dest2.Photo = src2.Photo;
						dest2.Notes = src2.Notes;
						dest2.ReportsTo = src2.ReportsTo;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Customer;
								if (src4 is Northwind.NET.Model.Customer)
								{
									dest4 = new Northwind.SL.Model.Customer();
									dest4.ID = src4.ID;
									dest4.Code = src4.Code;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.ContactName = src4.ContactName;
									dest4.ContactTitle = src4.ContactTitle;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.Phone = src4.Phone;
									dest4.Fax = src4.Fax;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Shipper;
											if (src6 is Northwind.NET.Model.Shipper)
											{
												dest6 = new Northwind.SL.Model.Shipper();
												dest6.ID = src6.ID;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												dest6.Phone = src6.Phone;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Shipper = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Customer = dest4;
								}
								src4 = src3.Shipper;
								if (src4 is Northwind.NET.Model.Shipper)
								{
									dest4 = new Northwind.SL.Model.Shipper();
									dest4.ID = src4.ID;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									dest4.Phone = src4.Phone;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Customer;
											if (src6 is Northwind.NET.Model.Customer)
											{
												dest6 = new Northwind.SL.Model.Customer();
												dest6.ID = src6.ID;
												dest6.Code = src6.Code;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												src7 = src6.SecurityHandle;
												if (src7 is Northwind.NET.Security.SecurityHandle)
												{
													dest7 = new Northwind.SL.Security.SecurityHandle();
													dest7.Domain = src7.Domain;
													dest6.SecurityHandle = dest7;
												}
												dest6.ContactName = src6.ContactName;
												dest6.ContactTitle = src6.ContactTitle;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.Phone = src6.Phone;
												dest6.Fax = src6.Fax;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Customer = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Shipper = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Employee = dest2;
					}
					src2 = src1.Shipper;
					if (src2 is Northwind.NET.Model.Shipper)
					{
						dest2 = new Northwind.SL.Model.Shipper();
						dest2.ID = src2.ID;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						dest2.Phone = src2.Phone;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Customer;
								if (src4 is Northwind.NET.Model.Customer)
								{
									dest4 = new Northwind.SL.Model.Customer();
									dest4.ID = src4.ID;
									dest4.Code = src4.Code;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.ContactName = src4.ContactName;
									dest4.ContactTitle = src4.ContactTitle;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.Phone = src4.Phone;
									dest4.Fax = src4.Fax;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Employee;
											if (src6 is Northwind.NET.Model.Employee)
											{
												dest6 = new Northwind.SL.Model.Employee();
												dest6.ID = src6.ID;
												dest6.LastName = src6.LastName;
												dest6.FirstName = src6.FirstName;
												dest6.Title = src6.Title;
												dest6.TitleOfCourtesy = src6.TitleOfCourtesy;
												dest6.BirthDate = src6.BirthDate;
												dest6.HireDate = src6.HireDate;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.HomePhone = src6.HomePhone;
												dest6.Extension = src6.Extension;
												dest6.Photo = src6.Photo;
												dest6.Notes = src6.Notes;
												dest6.ReportsTo = src6.ReportsTo;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Employee = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Customer = dest4;
								}
								src4 = src3.Employee;
								if (src4 is Northwind.NET.Model.Employee)
								{
									dest4 = new Northwind.SL.Model.Employee();
									dest4.ID = src4.ID;
									dest4.LastName = src4.LastName;
									dest4.FirstName = src4.FirstName;
									dest4.Title = src4.Title;
									dest4.TitleOfCourtesy = src4.TitleOfCourtesy;
									dest4.BirthDate = src4.BirthDate;
									dest4.HireDate = src4.HireDate;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.HomePhone = src4.HomePhone;
									dest4.Extension = src4.Extension;
									dest4.Photo = src4.Photo;
									dest4.Notes = src4.Notes;
									dest4.ReportsTo = src4.ReportsTo;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Customer;
											if (src6 is Northwind.NET.Model.Customer)
											{
												dest6 = new Northwind.SL.Model.Customer();
												dest6.ID = src6.ID;
												dest6.Code = src6.Code;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												src7 = src6.SecurityHandle;
												if (src7 is Northwind.NET.Security.SecurityHandle)
												{
													dest7 = new Northwind.SL.Security.SecurityHandle();
													dest7.Domain = src7.Domain;
													dest6.SecurityHandle = dest7;
												}
												dest6.ContactName = src6.ContactName;
												dest6.ContactTitle = src6.ContactTitle;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.Phone = src6.Phone;
												dest6.Fax = src6.Fax;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Customer = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Employee = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Shipper = dest2;
					}
					dest0.Orders.Add(dest1);
				}
			}
			return dest0;
		}
		public static Northwind.SL.Model.Shipper Convert(this Northwind.NET.Model.Shipper src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Shipper();
			dest0.ID = src0.ID;
			dest0.Name = src0.Name;
			src1 = src0.SecureName;
			if (src1 is Northwind.NET.Security.SecureString)
			{
				dest1 = new Northwind.SL.Security.SecureString();
				src2 = src1.SecurityHandle;
				if (src2 is Northwind.NET.Security.SecurityHandle)
				{
					dest2 = new Northwind.SL.Security.SecurityHandle();
					dest2.Domain = src2.Domain;
					dest1.SecurityHandle = dest2;
				}
				dest1.Value = src1.Value;
				dest0.SecureName = dest1;
			}
			src1 = src0.PermissionType;
			if (src1 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
			{
				dest1 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
				dest0.PermissionType = dest1;
			}
			dest0.Phone = src0.Phone;
			dest0.RowTimeStamps = src0.RowTimeStamps;
			if (src0.Orders != null)
			{
				dest0.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
				for (int i0 = 0; i0 < src0.Orders.Count; i0++)
				{
					src1 = src0.Orders[i0];
					dest1 = new Northwind.SL.Model.Order();
					dest1.ID = src1.ID;
					dest1.CustomerId = src1.CustomerId;
					dest1.EmployeeID = src1.EmployeeID;
					dest1.OrderDate = src1.OrderDate;
					dest1.RequiredDate = src1.RequiredDate;
					dest1.ShippedDate = src1.ShippedDate;
					dest1.ShipperId = src1.ShipperId;
					dest1.Freight = src1.Freight;
					dest1.ShipName = src1.ShipName;
					dest1.ShipAddress = src1.ShipAddress;
					dest1.ShipCity = src1.ShipCity;
					dest1.ShipRegion = src1.ShipRegion;
					dest1.ShipPostalCode = src1.ShipPostalCode;
					dest1.ShipCountry = src1.ShipCountry;
					dest1.RowTimeStamp = src1.RowTimeStamp;
					src2 = src1.Customer;
					if (src2 is Northwind.NET.Model.Customer)
					{
						dest2 = new Northwind.SL.Model.Customer();
						dest2.ID = src2.ID;
						dest2.Code = src2.Code;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						src3 = src2.SecurityHandle;
						if (src3 is Northwind.NET.Security.SecurityHandle)
						{
							dest3 = new Northwind.SL.Security.SecurityHandle();
							dest3.Domain = src3.Domain;
							dest2.SecurityHandle = dest3;
						}
						dest2.ContactName = src2.ContactName;
						dest2.ContactTitle = src2.ContactTitle;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.Phone = src2.Phone;
						dest2.Fax = src2.Fax;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Employee;
								if (src4 is Northwind.NET.Model.Employee)
								{
									dest4 = new Northwind.SL.Model.Employee();
									dest4.ID = src4.ID;
									dest4.LastName = src4.LastName;
									dest4.FirstName = src4.FirstName;
									dest4.Title = src4.Title;
									dest4.TitleOfCourtesy = src4.TitleOfCourtesy;
									dest4.BirthDate = src4.BirthDate;
									dest4.HireDate = src4.HireDate;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.HomePhone = src4.HomePhone;
									dest4.Extension = src4.Extension;
									dest4.Photo = src4.Photo;
									dest4.Notes = src4.Notes;
									dest4.ReportsTo = src4.ReportsTo;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Shipper;
											if (src6 is Northwind.NET.Model.Shipper)
											{
												dest6 = new Northwind.SL.Model.Shipper();
												dest6.ID = src6.ID;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												dest6.Phone = src6.Phone;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Shipper = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Employee = dest4;
								}
								src4 = src3.Shipper;
								if (src4 is Northwind.NET.Model.Shipper)
								{
									dest4 = new Northwind.SL.Model.Shipper();
									dest4.ID = src4.ID;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									dest4.Phone = src4.Phone;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Employee;
											if (src6 is Northwind.NET.Model.Employee)
											{
												dest6 = new Northwind.SL.Model.Employee();
												dest6.ID = src6.ID;
												dest6.LastName = src6.LastName;
												dest6.FirstName = src6.FirstName;
												dest6.Title = src6.Title;
												dest6.TitleOfCourtesy = src6.TitleOfCourtesy;
												dest6.BirthDate = src6.BirthDate;
												dest6.HireDate = src6.HireDate;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.HomePhone = src6.HomePhone;
												dest6.Extension = src6.Extension;
												dest6.Photo = src6.Photo;
												dest6.Notes = src6.Notes;
												dest6.ReportsTo = src6.ReportsTo;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Employee = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Shipper = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Customer = dest2;
					}
					src2 = src1.Employee;
					if (src2 is Northwind.NET.Model.Employee)
					{
						dest2 = new Northwind.SL.Model.Employee();
						dest2.ID = src2.ID;
						dest2.LastName = src2.LastName;
						dest2.FirstName = src2.FirstName;
						dest2.Title = src2.Title;
						dest2.TitleOfCourtesy = src2.TitleOfCourtesy;
						dest2.BirthDate = src2.BirthDate;
						dest2.HireDate = src2.HireDate;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.HomePhone = src2.HomePhone;
						dest2.Extension = src2.Extension;
						dest2.Photo = src2.Photo;
						dest2.Notes = src2.Notes;
						dest2.ReportsTo = src2.ReportsTo;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Customer;
								if (src4 is Northwind.NET.Model.Customer)
								{
									dest4 = new Northwind.SL.Model.Customer();
									dest4.ID = src4.ID;
									dest4.Code = src4.Code;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.ContactName = src4.ContactName;
									dest4.ContactTitle = src4.ContactTitle;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.Phone = src4.Phone;
									dest4.Fax = src4.Fax;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Shipper;
											if (src6 is Northwind.NET.Model.Shipper)
											{
												dest6 = new Northwind.SL.Model.Shipper();
												dest6.ID = src6.ID;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												dest6.Phone = src6.Phone;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Shipper = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Customer = dest4;
								}
								src4 = src3.Shipper;
								if (src4 is Northwind.NET.Model.Shipper)
								{
									dest4 = new Northwind.SL.Model.Shipper();
									dest4.ID = src4.ID;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									dest4.Phone = src4.Phone;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Customer;
											if (src6 is Northwind.NET.Model.Customer)
											{
												dest6 = new Northwind.SL.Model.Customer();
												dest6.ID = src6.ID;
												dest6.Code = src6.Code;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												src7 = src6.SecurityHandle;
												if (src7 is Northwind.NET.Security.SecurityHandle)
												{
													dest7 = new Northwind.SL.Security.SecurityHandle();
													dest7.Domain = src7.Domain;
													dest6.SecurityHandle = dest7;
												}
												dest6.ContactName = src6.ContactName;
												dest6.ContactTitle = src6.ContactTitle;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.Phone = src6.Phone;
												dest6.Fax = src6.Fax;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Customer = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Shipper = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Employee = dest2;
					}
					src2 = src1.Shipper;
					if (src2 is Northwind.NET.Model.Shipper)
					{
						dest2 = new Northwind.SL.Model.Shipper();
						dest2.ID = src2.ID;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						dest2.Phone = src2.Phone;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Customer;
								if (src4 is Northwind.NET.Model.Customer)
								{
									dest4 = new Northwind.SL.Model.Customer();
									dest4.ID = src4.ID;
									dest4.Code = src4.Code;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.ContactName = src4.ContactName;
									dest4.ContactTitle = src4.ContactTitle;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.Phone = src4.Phone;
									dest4.Fax = src4.Fax;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Employee;
											if (src6 is Northwind.NET.Model.Employee)
											{
												dest6 = new Northwind.SL.Model.Employee();
												dest6.ID = src6.ID;
												dest6.LastName = src6.LastName;
												dest6.FirstName = src6.FirstName;
												dest6.Title = src6.Title;
												dest6.TitleOfCourtesy = src6.TitleOfCourtesy;
												dest6.BirthDate = src6.BirthDate;
												dest6.HireDate = src6.HireDate;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.HomePhone = src6.HomePhone;
												dest6.Extension = src6.Extension;
												dest6.Photo = src6.Photo;
												dest6.Notes = src6.Notes;
												dest6.ReportsTo = src6.ReportsTo;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Employee = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Customer = dest4;
								}
								src4 = src3.Employee;
								if (src4 is Northwind.NET.Model.Employee)
								{
									dest4 = new Northwind.SL.Model.Employee();
									dest4.ID = src4.ID;
									dest4.LastName = src4.LastName;
									dest4.FirstName = src4.FirstName;
									dest4.Title = src4.Title;
									dest4.TitleOfCourtesy = src4.TitleOfCourtesy;
									dest4.BirthDate = src4.BirthDate;
									dest4.HireDate = src4.HireDate;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.HomePhone = src4.HomePhone;
									dest4.Extension = src4.Extension;
									dest4.Photo = src4.Photo;
									dest4.Notes = src4.Notes;
									dest4.ReportsTo = src4.ReportsTo;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Customer;
											if (src6 is Northwind.NET.Model.Customer)
											{
												dest6 = new Northwind.SL.Model.Customer();
												dest6.ID = src6.ID;
												dest6.Code = src6.Code;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												src7 = src6.SecurityHandle;
												if (src7 is Northwind.NET.Security.SecurityHandle)
												{
													dest7 = new Northwind.SL.Security.SecurityHandle();
													dest7.Domain = src7.Domain;
													dest6.SecurityHandle = dest7;
												}
												dest6.ContactName = src6.ContactName;
												dest6.ContactTitle = src6.ContactTitle;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.Phone = src6.Phone;
												dest6.Fax = src6.Fax;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Customer = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Employee = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Shipper = dest2;
					}
					dest0.Orders.Add(dest1);
				}
			}
			return dest0;
		}
		public static Northwind.SL.Model.Supplier Convert(this Northwind.NET.Model.Supplier src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Supplier();
			dest0.ID = src0.ID;
			dest0.Name = src0.Name;
			src1 = src0.SecureName;
			if (src1 is Northwind.NET.Security.SecureString)
			{
				dest1 = new Northwind.SL.Security.SecureString();
				src2 = src1.SecurityHandle;
				if (src2 is Northwind.NET.Security.SecurityHandle)
				{
					dest2 = new Northwind.SL.Security.SecurityHandle();
					dest2.Domain = src2.Domain;
					dest1.SecurityHandle = dest2;
				}
				dest1.Value = src1.Value;
				dest0.SecureName = dest1;
			}
			src1 = src0.PermissionType;
			if (src1 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
			{
				dest1 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
				dest0.PermissionType = dest1;
			}
			dest0.ContactName = src0.ContactName;
			dest0.ContactTitle = src0.ContactTitle;
			dest0.Address = src0.Address;
			dest0.City = src0.City;
			dest0.Region = src0.Region;
			dest0.PostalCode = src0.PostalCode;
			dest0.Country = src0.Country;
			dest0.Phone = src0.Phone;
			dest0.Fax = src0.Fax;
			dest0.HomePage = src0.HomePage;
			dest0.RowTimeStamps = src0.RowTimeStamps;
			if (src0.Products != null)
			{
				dest0.Products = new System.Collections.Generic.List<Northwind.SL.Model.Product>();
				for (int i0 = 0; i0 < src0.Products.Count; i0++)
				{
					src1 = src0.Products[i0];
					dest1 = new Northwind.SL.Model.Product();
					dest1.ID = src1.ID;
					src2 = src1.PermissionType;
					if (src2 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
					{
						dest2 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
						dest1.PermissionType = dest2;
					}
					src2 = src1.SecureName;
					if (src2 is Northwind.NET.Security.SecureString)
					{
						dest2 = new Northwind.SL.Security.SecureString();
						src3 = src2.SecurityHandle;
						if (src3 is Northwind.NET.Security.SecurityHandle)
						{
							dest3 = new Northwind.SL.Security.SecurityHandle();
							dest3.Domain = src3.Domain;
							dest2.SecurityHandle = dest3;
						}
						dest2.Value = src2.Value;
						dest1.SecureName = dest2;
					}
					dest1.Name = src1.Name;
					src2 = src1.SecurityHandle;
					if (src2 is Northwind.NET.Security.SecurityHandle)
					{
						dest2 = new Northwind.SL.Security.SecurityHandle();
						dest2.Domain = src2.Domain;
						dest1.SecurityHandle = dest2;
					}
					dest1.SupplierID = src1.SupplierID;
					dest1.CategoryID = src1.CategoryID;
					dest1.QuantityPerUnit = src1.QuantityPerUnit;
					dest1.UnitPrice = src1.UnitPrice;
					dest1.UnitsInStock = src1.UnitsInStock;
					dest1.UnitsOnOrder = src1.UnitsOnOrder;
					dest1.ReorderLevel = src1.ReorderLevel;
					dest1.Discontinued = src1.Discontinued;
					dest1.RowTimeStamps = src1.RowTimeStamps;
					src2 = src1.Supplier;
					if (src2 is Northwind.NET.Model.Supplier)
					{
						dest2 = new Northwind.SL.Model.Supplier();
						dest2.ID = src2.ID;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						dest2.ContactName = src2.ContactName;
						dest2.ContactTitle = src2.ContactTitle;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.Phone = src2.Phone;
						dest2.Fax = src2.Fax;
						dest2.HomePage = src2.HomePage;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Products != null)
						{
							dest2.Products = new System.Collections.Generic.List<Northwind.SL.Model.Product>();
							for (int i2 = 0; i2 < src2.Products.Count; i2++)
							{
								src3 = src2.Products[i2];
								dest3 = new Northwind.SL.Model.Product();
								dest3.ID = src3.ID;
								src4 = src3.PermissionType;
								if (src4 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
								{
									dest4 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
									dest3.PermissionType = dest4;
								}
								src4 = src3.SecureName;
								if (src4 is Northwind.NET.Security.SecureString)
								{
									dest4 = new Northwind.SL.Security.SecureString();
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.Value = src4.Value;
									dest3.SecureName = dest4;
								}
								dest3.Name = src3.Name;
								src4 = src3.SecurityHandle;
								if (src4 is Northwind.NET.Security.SecurityHandle)
								{
									dest4 = new Northwind.SL.Security.SecurityHandle();
									dest4.Domain = src4.Domain;
									dest3.SecurityHandle = dest4;
								}
								dest3.SupplierID = src3.SupplierID;
								dest3.CategoryID = src3.CategoryID;
								dest3.QuantityPerUnit = src3.QuantityPerUnit;
								dest3.UnitPrice = src3.UnitPrice;
								dest3.UnitsInStock = src3.UnitsInStock;
								dest3.UnitsOnOrder = src3.UnitsOnOrder;
								dest3.ReorderLevel = src3.ReorderLevel;
								dest3.Discontinued = src3.Discontinued;
								dest3.RowTimeStamps = src3.RowTimeStamps;
								dest2.Products.Add(dest3);
							}
						}
						dest1.Supplier = dest2;
					}
					dest0.Products.Add(dest1);
				}
			}
			return dest0;
		}
		public static Northwind.SL.Model.Category Convert(this Northwind.NET.Model.Category src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Category();
			dest0.ID = src0.ID;
			dest0.Name = src0.Name;
			dest0.Description = src0.Description;
			dest0.Pictures = src0.Pictures;
			dest0.RowTimeStamps = src0.RowTimeStamps;
			if (src0.Products != null)
			{
				dest0.Products = new System.Collections.Generic.List<Northwind.SL.Model.Product>();
				for (int i0 = 0; i0 < src0.Products.Count; i0++)
				{
					src1 = src0.Products[i0];
					dest1 = new Northwind.SL.Model.Product();
					dest1.ID = src1.ID;
					src2 = src1.PermissionType;
					if (src2 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
					{
						dest2 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
						dest1.PermissionType = dest2;
					}
					src2 = src1.SecureName;
					if (src2 is Northwind.NET.Security.SecureString)
					{
						dest2 = new Northwind.SL.Security.SecureString();
						src3 = src2.SecurityHandle;
						if (src3 is Northwind.NET.Security.SecurityHandle)
						{
							dest3 = new Northwind.SL.Security.SecurityHandle();
							dest3.Domain = src3.Domain;
							dest2.SecurityHandle = dest3;
						}
						dest2.Value = src2.Value;
						dest1.SecureName = dest2;
					}
					dest1.Name = src1.Name;
					src2 = src1.SecurityHandle;
					if (src2 is Northwind.NET.Security.SecurityHandle)
					{
						dest2 = new Northwind.SL.Security.SecurityHandle();
						dest2.Domain = src2.Domain;
						dest1.SecurityHandle = dest2;
					}
					dest1.SupplierID = src1.SupplierID;
					dest1.CategoryID = src1.CategoryID;
					dest1.QuantityPerUnit = src1.QuantityPerUnit;
					dest1.UnitPrice = src1.UnitPrice;
					dest1.UnitsInStock = src1.UnitsInStock;
					dest1.UnitsOnOrder = src1.UnitsOnOrder;
					dest1.ReorderLevel = src1.ReorderLevel;
					dest1.Discontinued = src1.Discontinued;
					dest1.RowTimeStamps = src1.RowTimeStamps;
					src2 = src1.Supplier;
					if (src2 is Northwind.NET.Model.Supplier)
					{
						dest2 = new Northwind.SL.Model.Supplier();
						dest2.ID = src2.ID;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						dest2.ContactName = src2.ContactName;
						dest2.ContactTitle = src2.ContactTitle;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.Phone = src2.Phone;
						dest2.Fax = src2.Fax;
						dest2.HomePage = src2.HomePage;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Products != null)
						{
							dest2.Products = new System.Collections.Generic.List<Northwind.SL.Model.Product>();
							for (int i2 = 0; i2 < src2.Products.Count; i2++)
							{
								src3 = src2.Products[i2];
								dest3 = new Northwind.SL.Model.Product();
								dest3.ID = src3.ID;
								src4 = src3.PermissionType;
								if (src4 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
								{
									dest4 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
									dest3.PermissionType = dest4;
								}
								src4 = src3.SecureName;
								if (src4 is Northwind.NET.Security.SecureString)
								{
									dest4 = new Northwind.SL.Security.SecureString();
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.Value = src4.Value;
									dest3.SecureName = dest4;
								}
								dest3.Name = src3.Name;
								src4 = src3.SecurityHandle;
								if (src4 is Northwind.NET.Security.SecurityHandle)
								{
									dest4 = new Northwind.SL.Security.SecurityHandle();
									dest4.Domain = src4.Domain;
									dest3.SecurityHandle = dest4;
								}
								dest3.SupplierID = src3.SupplierID;
								dest3.CategoryID = src3.CategoryID;
								dest3.QuantityPerUnit = src3.QuantityPerUnit;
								dest3.UnitPrice = src3.UnitPrice;
								dest3.UnitsInStock = src3.UnitsInStock;
								dest3.UnitsOnOrder = src3.UnitsOnOrder;
								dest3.ReorderLevel = src3.ReorderLevel;
								dest3.Discontinued = src3.Discontinued;
								dest3.RowTimeStamps = src3.RowTimeStamps;
								dest2.Products.Add(dest3);
							}
						}
						dest1.Supplier = dest2;
					}
					dest0.Products.Add(dest1);
				}
			}
			return dest0;
		}
		public static Northwind.SL.Model.Employee Convert(this Northwind.NET.Model.Employee src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Employee();
			dest0.ID = src0.ID;
			dest0.LastName = src0.LastName;
			dest0.FirstName = src0.FirstName;
			dest0.Title = src0.Title;
			dest0.TitleOfCourtesy = src0.TitleOfCourtesy;
			dest0.BirthDate = src0.BirthDate;
			dest0.HireDate = src0.HireDate;
			dest0.Address = src0.Address;
			dest0.City = src0.City;
			dest0.Region = src0.Region;
			dest0.PostalCode = src0.PostalCode;
			dest0.Country = src0.Country;
			dest0.HomePhone = src0.HomePhone;
			dest0.Extension = src0.Extension;
			dest0.Photo = src0.Photo;
			dest0.Notes = src0.Notes;
			dest0.ReportsTo = src0.ReportsTo;
			dest0.RowTimeStamps = src0.RowTimeStamps;
			if (src0.Orders != null)
			{
				dest0.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
				for (int i0 = 0; i0 < src0.Orders.Count; i0++)
				{
					src1 = src0.Orders[i0];
					dest1 = new Northwind.SL.Model.Order();
					dest1.ID = src1.ID;
					dest1.CustomerId = src1.CustomerId;
					dest1.EmployeeID = src1.EmployeeID;
					dest1.OrderDate = src1.OrderDate;
					dest1.RequiredDate = src1.RequiredDate;
					dest1.ShippedDate = src1.ShippedDate;
					dest1.ShipperId = src1.ShipperId;
					dest1.Freight = src1.Freight;
					dest1.ShipName = src1.ShipName;
					dest1.ShipAddress = src1.ShipAddress;
					dest1.ShipCity = src1.ShipCity;
					dest1.ShipRegion = src1.ShipRegion;
					dest1.ShipPostalCode = src1.ShipPostalCode;
					dest1.ShipCountry = src1.ShipCountry;
					dest1.RowTimeStamp = src1.RowTimeStamp;
					src2 = src1.Customer;
					if (src2 is Northwind.NET.Model.Customer)
					{
						dest2 = new Northwind.SL.Model.Customer();
						dest2.ID = src2.ID;
						dest2.Code = src2.Code;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						src3 = src2.SecurityHandle;
						if (src3 is Northwind.NET.Security.SecurityHandle)
						{
							dest3 = new Northwind.SL.Security.SecurityHandle();
							dest3.Domain = src3.Domain;
							dest2.SecurityHandle = dest3;
						}
						dest2.ContactName = src2.ContactName;
						dest2.ContactTitle = src2.ContactTitle;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.Phone = src2.Phone;
						dest2.Fax = src2.Fax;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Employee;
								if (src4 is Northwind.NET.Model.Employee)
								{
									dest4 = new Northwind.SL.Model.Employee();
									dest4.ID = src4.ID;
									dest4.LastName = src4.LastName;
									dest4.FirstName = src4.FirstName;
									dest4.Title = src4.Title;
									dest4.TitleOfCourtesy = src4.TitleOfCourtesy;
									dest4.BirthDate = src4.BirthDate;
									dest4.HireDate = src4.HireDate;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.HomePhone = src4.HomePhone;
									dest4.Extension = src4.Extension;
									dest4.Photo = src4.Photo;
									dest4.Notes = src4.Notes;
									dest4.ReportsTo = src4.ReportsTo;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Shipper;
											if (src6 is Northwind.NET.Model.Shipper)
											{
												dest6 = new Northwind.SL.Model.Shipper();
												dest6.ID = src6.ID;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												dest6.Phone = src6.Phone;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Shipper = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Employee = dest4;
								}
								src4 = src3.Shipper;
								if (src4 is Northwind.NET.Model.Shipper)
								{
									dest4 = new Northwind.SL.Model.Shipper();
									dest4.ID = src4.ID;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									dest4.Phone = src4.Phone;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Employee;
											if (src6 is Northwind.NET.Model.Employee)
											{
												dest6 = new Northwind.SL.Model.Employee();
												dest6.ID = src6.ID;
												dest6.LastName = src6.LastName;
												dest6.FirstName = src6.FirstName;
												dest6.Title = src6.Title;
												dest6.TitleOfCourtesy = src6.TitleOfCourtesy;
												dest6.BirthDate = src6.BirthDate;
												dest6.HireDate = src6.HireDate;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.HomePhone = src6.HomePhone;
												dest6.Extension = src6.Extension;
												dest6.Photo = src6.Photo;
												dest6.Notes = src6.Notes;
												dest6.ReportsTo = src6.ReportsTo;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Employee = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Shipper = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Customer = dest2;
					}
					src2 = src1.Employee;
					if (src2 is Northwind.NET.Model.Employee)
					{
						dest2 = new Northwind.SL.Model.Employee();
						dest2.ID = src2.ID;
						dest2.LastName = src2.LastName;
						dest2.FirstName = src2.FirstName;
						dest2.Title = src2.Title;
						dest2.TitleOfCourtesy = src2.TitleOfCourtesy;
						dest2.BirthDate = src2.BirthDate;
						dest2.HireDate = src2.HireDate;
						dest2.Address = src2.Address;
						dest2.City = src2.City;
						dest2.Region = src2.Region;
						dest2.PostalCode = src2.PostalCode;
						dest2.Country = src2.Country;
						dest2.HomePhone = src2.HomePhone;
						dest2.Extension = src2.Extension;
						dest2.Photo = src2.Photo;
						dest2.Notes = src2.Notes;
						dest2.ReportsTo = src2.ReportsTo;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Customer;
								if (src4 is Northwind.NET.Model.Customer)
								{
									dest4 = new Northwind.SL.Model.Customer();
									dest4.ID = src4.ID;
									dest4.Code = src4.Code;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.ContactName = src4.ContactName;
									dest4.ContactTitle = src4.ContactTitle;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.Phone = src4.Phone;
									dest4.Fax = src4.Fax;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Shipper;
											if (src6 is Northwind.NET.Model.Shipper)
											{
												dest6 = new Northwind.SL.Model.Shipper();
												dest6.ID = src6.ID;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												dest6.Phone = src6.Phone;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Shipper = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Customer = dest4;
								}
								src4 = src3.Shipper;
								if (src4 is Northwind.NET.Model.Shipper)
								{
									dest4 = new Northwind.SL.Model.Shipper();
									dest4.ID = src4.ID;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									dest4.Phone = src4.Phone;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Customer;
											if (src6 is Northwind.NET.Model.Customer)
											{
												dest6 = new Northwind.SL.Model.Customer();
												dest6.ID = src6.ID;
												dest6.Code = src6.Code;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												src7 = src6.SecurityHandle;
												if (src7 is Northwind.NET.Security.SecurityHandle)
												{
													dest7 = new Northwind.SL.Security.SecurityHandle();
													dest7.Domain = src7.Domain;
													dest6.SecurityHandle = dest7;
												}
												dest6.ContactName = src6.ContactName;
												dest6.ContactTitle = src6.ContactTitle;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.Phone = src6.Phone;
												dest6.Fax = src6.Fax;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Customer = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Shipper = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Employee = dest2;
					}
					src2 = src1.Shipper;
					if (src2 is Northwind.NET.Model.Shipper)
					{
						dest2 = new Northwind.SL.Model.Shipper();
						dest2.ID = src2.ID;
						dest2.Name = src2.Name;
						src3 = src2.SecureName;
						if (src3 is Northwind.NET.Security.SecureString)
						{
							dest3 = new Northwind.SL.Security.SecureString();
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.Value = src3.Value;
							dest2.SecureName = dest3;
						}
						src3 = src2.PermissionType;
						if (src3 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
						{
							dest3 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
							dest2.PermissionType = dest3;
						}
						dest2.Phone = src2.Phone;
						dest2.RowTimeStamps = src2.RowTimeStamps;
						if (src2.Orders != null)
						{
							dest2.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
							for (int i2 = 0; i2 < src2.Orders.Count; i2++)
							{
								src3 = src2.Orders[i2];
								dest3 = new Northwind.SL.Model.Order();
								dest3.ID = src3.ID;
								dest3.CustomerId = src3.CustomerId;
								dest3.EmployeeID = src3.EmployeeID;
								dest3.OrderDate = src3.OrderDate;
								dest3.RequiredDate = src3.RequiredDate;
								dest3.ShippedDate = src3.ShippedDate;
								dest3.ShipperId = src3.ShipperId;
								dest3.Freight = src3.Freight;
								dest3.ShipName = src3.ShipName;
								dest3.ShipAddress = src3.ShipAddress;
								dest3.ShipCity = src3.ShipCity;
								dest3.ShipRegion = src3.ShipRegion;
								dest3.ShipPostalCode = src3.ShipPostalCode;
								dest3.ShipCountry = src3.ShipCountry;
								dest3.RowTimeStamp = src3.RowTimeStamp;
								src4 = src3.Customer;
								if (src4 is Northwind.NET.Model.Customer)
								{
									dest4 = new Northwind.SL.Model.Customer();
									dest4.ID = src4.ID;
									dest4.Code = src4.Code;
									dest4.Name = src4.Name;
									src5 = src4.SecureName;
									if (src5 is Northwind.NET.Security.SecureString)
									{
										dest5 = new Northwind.SL.Security.SecureString();
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.Value = src5.Value;
										dest4.SecureName = dest5;
									}
									src5 = src4.PermissionType;
									if (src5 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
									{
										dest5 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
										dest4.PermissionType = dest5;
									}
									src5 = src4.SecurityHandle;
									if (src5 is Northwind.NET.Security.SecurityHandle)
									{
										dest5 = new Northwind.SL.Security.SecurityHandle();
										dest5.Domain = src5.Domain;
										dest4.SecurityHandle = dest5;
									}
									dest4.ContactName = src4.ContactName;
									dest4.ContactTitle = src4.ContactTitle;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.Phone = src4.Phone;
									dest4.Fax = src4.Fax;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Employee;
											if (src6 is Northwind.NET.Model.Employee)
											{
												dest6 = new Northwind.SL.Model.Employee();
												dest6.ID = src6.ID;
												dest6.LastName = src6.LastName;
												dest6.FirstName = src6.FirstName;
												dest6.Title = src6.Title;
												dest6.TitleOfCourtesy = src6.TitleOfCourtesy;
												dest6.BirthDate = src6.BirthDate;
												dest6.HireDate = src6.HireDate;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.HomePhone = src6.HomePhone;
												dest6.Extension = src6.Extension;
												dest6.Photo = src6.Photo;
												dest6.Notes = src6.Notes;
												dest6.ReportsTo = src6.ReportsTo;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Employee = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Customer = dest4;
								}
								src4 = src3.Employee;
								if (src4 is Northwind.NET.Model.Employee)
								{
									dest4 = new Northwind.SL.Model.Employee();
									dest4.ID = src4.ID;
									dest4.LastName = src4.LastName;
									dest4.FirstName = src4.FirstName;
									dest4.Title = src4.Title;
									dest4.TitleOfCourtesy = src4.TitleOfCourtesy;
									dest4.BirthDate = src4.BirthDate;
									dest4.HireDate = src4.HireDate;
									dest4.Address = src4.Address;
									dest4.City = src4.City;
									dest4.Region = src4.Region;
									dest4.PostalCode = src4.PostalCode;
									dest4.Country = src4.Country;
									dest4.HomePhone = src4.HomePhone;
									dest4.Extension = src4.Extension;
									dest4.Photo = src4.Photo;
									dest4.Notes = src4.Notes;
									dest4.ReportsTo = src4.ReportsTo;
									dest4.RowTimeStamps = src4.RowTimeStamps;
									if (src4.Orders != null)
									{
										dest4.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
										for (int i4 = 0; i4 < src4.Orders.Count; i4++)
										{
											src5 = src4.Orders[i4];
											dest5 = new Northwind.SL.Model.Order();
											dest5.ID = src5.ID;
											dest5.CustomerId = src5.CustomerId;
											dest5.EmployeeID = src5.EmployeeID;
											dest5.OrderDate = src5.OrderDate;
											dest5.RequiredDate = src5.RequiredDate;
											dest5.ShippedDate = src5.ShippedDate;
											dest5.ShipperId = src5.ShipperId;
											dest5.Freight = src5.Freight;
											dest5.ShipName = src5.ShipName;
											dest5.ShipAddress = src5.ShipAddress;
											dest5.ShipCity = src5.ShipCity;
											dest5.ShipRegion = src5.ShipRegion;
											dest5.ShipPostalCode = src5.ShipPostalCode;
											dest5.ShipCountry = src5.ShipCountry;
											dest5.RowTimeStamp = src5.RowTimeStamp;
											src6 = src5.Customer;
											if (src6 is Northwind.NET.Model.Customer)
											{
												dest6 = new Northwind.SL.Model.Customer();
												dest6.ID = src6.ID;
												dest6.Code = src6.Code;
												dest6.Name = src6.Name;
												src7 = src6.SecureName;
												if (src7 is Northwind.NET.Security.SecureString)
												{
													dest7 = new Northwind.SL.Security.SecureString();
													src8 = src7.SecurityHandle;
													if (src8 is Northwind.NET.Security.SecurityHandle)
													{
														dest8 = new Northwind.SL.Security.SecurityHandle();
														dest8.Domain = src8.Domain;
														dest7.SecurityHandle = dest8;
													}
													dest7.Value = src7.Value;
													dest6.SecureName = dest7;
												}
												src7 = src6.PermissionType;
												if (src7 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
												{
													dest7 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
													dest6.PermissionType = dest7;
												}
												src7 = src6.SecurityHandle;
												if (src7 is Northwind.NET.Security.SecurityHandle)
												{
													dest7 = new Northwind.SL.Security.SecurityHandle();
													dest7.Domain = src7.Domain;
													dest6.SecurityHandle = dest7;
												}
												dest6.ContactName = src6.ContactName;
												dest6.ContactTitle = src6.ContactTitle;
												dest6.Address = src6.Address;
												dest6.City = src6.City;
												dest6.Region = src6.Region;
												dest6.PostalCode = src6.PostalCode;
												dest6.Country = src6.Country;
												dest6.Phone = src6.Phone;
												dest6.Fax = src6.Fax;
												dest6.RowTimeStamps = src6.RowTimeStamps;
												if (src6.Orders != null)
												{
													dest6.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
													for (int i6 = 0; i6 < src6.Orders.Count; i6++)
													{
														src7 = src6.Orders[i6];
														dest7 = new Northwind.SL.Model.Order();
														dest7.ID = src7.ID;
														dest7.CustomerId = src7.CustomerId;
														dest7.EmployeeID = src7.EmployeeID;
														dest7.OrderDate = src7.OrderDate;
														dest7.RequiredDate = src7.RequiredDate;
														dest7.ShippedDate = src7.ShippedDate;
														dest7.ShipperId = src7.ShipperId;
														dest7.Freight = src7.Freight;
														dest7.ShipName = src7.ShipName;
														dest7.ShipAddress = src7.ShipAddress;
														dest7.ShipCity = src7.ShipCity;
														dest7.ShipRegion = src7.ShipRegion;
														dest7.ShipPostalCode = src7.ShipPostalCode;
														dest7.ShipCountry = src7.ShipCountry;
														dest7.RowTimeStamp = src7.RowTimeStamp;
														dest6.Orders.Add(dest7);
													}
												}
												dest5.Customer = dest6;
											}
											dest4.Orders.Add(dest5);
										}
									}
									dest3.Employee = dest4;
								}
								dest2.Orders.Add(dest3);
							}
						}
						dest1.Shipper = dest2;
					}
					dest0.Orders.Add(dest1);
				}
			}
			return dest0;
		}
		public static Northwind.SL.Model.Order Convert(this Northwind.NET.Model.Order src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Model.Order();
			dest0.ID = src0.ID;
			dest0.CustomerId = src0.CustomerId;
			dest0.EmployeeID = src0.EmployeeID;
			dest0.OrderDate = src0.OrderDate;
			dest0.RequiredDate = src0.RequiredDate;
			dest0.ShippedDate = src0.ShippedDate;
			dest0.ShipperId = src0.ShipperId;
			dest0.Freight = src0.Freight;
			dest0.ShipName = src0.ShipName;
			dest0.ShipAddress = src0.ShipAddress;
			dest0.ShipCity = src0.ShipCity;
			dest0.ShipRegion = src0.ShipRegion;
			dest0.ShipPostalCode = src0.ShipPostalCode;
			dest0.ShipCountry = src0.ShipCountry;
			dest0.RowTimeStamp = src0.RowTimeStamp;
			src1 = src0.Customer;
			if (src1 is Northwind.NET.Model.Customer)
			{
				dest1 = new Northwind.SL.Model.Customer();
				dest1.ID = src1.ID;
				dest1.Code = src1.Code;
				dest1.Name = src1.Name;
				src2 = src1.SecureName;
				if (src2 is Northwind.NET.Security.SecureString)
				{
					dest2 = new Northwind.SL.Security.SecureString();
					src3 = src2.SecurityHandle;
					if (src3 is Northwind.NET.Security.SecurityHandle)
					{
						dest3 = new Northwind.SL.Security.SecurityHandle();
						dest3.Domain = src3.Domain;
						dest2.SecurityHandle = dest3;
					}
					dest2.Value = src2.Value;
					dest1.SecureName = dest2;
				}
				src2 = src1.PermissionType;
				if (src2 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
				{
					dest2 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
					dest1.PermissionType = dest2;
				}
				src2 = src1.SecurityHandle;
				if (src2 is Northwind.NET.Security.SecurityHandle)
				{
					dest2 = new Northwind.SL.Security.SecurityHandle();
					dest2.Domain = src2.Domain;
					dest1.SecurityHandle = dest2;
				}
				dest1.ContactName = src1.ContactName;
				dest1.ContactTitle = src1.ContactTitle;
				dest1.Address = src1.Address;
				dest1.City = src1.City;
				dest1.Region = src1.Region;
				dest1.PostalCode = src1.PostalCode;
				dest1.Country = src1.Country;
				dest1.Phone = src1.Phone;
				dest1.Fax = src1.Fax;
				dest1.RowTimeStamps = src1.RowTimeStamps;
				if (src1.Orders != null)
				{
					dest1.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
					for (int i1 = 0; i1 < src1.Orders.Count; i1++)
					{
						src2 = src1.Orders[i1];
						dest2 = new Northwind.SL.Model.Order();
						dest2.ID = src2.ID;
						dest2.CustomerId = src2.CustomerId;
						dest2.EmployeeID = src2.EmployeeID;
						dest2.OrderDate = src2.OrderDate;
						dest2.RequiredDate = src2.RequiredDate;
						dest2.ShippedDate = src2.ShippedDate;
						dest2.ShipperId = src2.ShipperId;
						dest2.Freight = src2.Freight;
						dest2.ShipName = src2.ShipName;
						dest2.ShipAddress = src2.ShipAddress;
						dest2.ShipCity = src2.ShipCity;
						dest2.ShipRegion = src2.ShipRegion;
						dest2.ShipPostalCode = src2.ShipPostalCode;
						dest2.ShipCountry = src2.ShipCountry;
						dest2.RowTimeStamp = src2.RowTimeStamp;
						src3 = src2.Employee;
						if (src3 is Northwind.NET.Model.Employee)
						{
							dest3 = new Northwind.SL.Model.Employee();
							dest3.ID = src3.ID;
							dest3.LastName = src3.LastName;
							dest3.FirstName = src3.FirstName;
							dest3.Title = src3.Title;
							dest3.TitleOfCourtesy = src3.TitleOfCourtesy;
							dest3.BirthDate = src3.BirthDate;
							dest3.HireDate = src3.HireDate;
							dest3.Address = src3.Address;
							dest3.City = src3.City;
							dest3.Region = src3.Region;
							dest3.PostalCode = src3.PostalCode;
							dest3.Country = src3.Country;
							dest3.HomePhone = src3.HomePhone;
							dest3.Extension = src3.Extension;
							dest3.Photo = src3.Photo;
							dest3.Notes = src3.Notes;
							dest3.ReportsTo = src3.ReportsTo;
							dest3.RowTimeStamps = src3.RowTimeStamps;
							if (src3.Orders != null)
							{
								dest3.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
								for (int i3 = 0; i3 < src3.Orders.Count; i3++)
								{
									src4 = src3.Orders[i3];
									dest4 = new Northwind.SL.Model.Order();
									dest4.ID = src4.ID;
									dest4.CustomerId = src4.CustomerId;
									dest4.EmployeeID = src4.EmployeeID;
									dest4.OrderDate = src4.OrderDate;
									dest4.RequiredDate = src4.RequiredDate;
									dest4.ShippedDate = src4.ShippedDate;
									dest4.ShipperId = src4.ShipperId;
									dest4.Freight = src4.Freight;
									dest4.ShipName = src4.ShipName;
									dest4.ShipAddress = src4.ShipAddress;
									dest4.ShipCity = src4.ShipCity;
									dest4.ShipRegion = src4.ShipRegion;
									dest4.ShipPostalCode = src4.ShipPostalCode;
									dest4.ShipCountry = src4.ShipCountry;
									dest4.RowTimeStamp = src4.RowTimeStamp;
									src5 = src4.Shipper;
									if (src5 is Northwind.NET.Model.Shipper)
									{
										dest5 = new Northwind.SL.Model.Shipper();
										dest5.ID = src5.ID;
										dest5.Name = src5.Name;
										src6 = src5.SecureName;
										if (src6 is Northwind.NET.Security.SecureString)
										{
											dest6 = new Northwind.SL.Security.SecureString();
											src7 = src6.SecurityHandle;
											if (src7 is Northwind.NET.Security.SecurityHandle)
											{
												dest7 = new Northwind.SL.Security.SecurityHandle();
												dest7.Domain = src7.Domain;
												dest6.SecurityHandle = dest7;
											}
											dest6.Value = src6.Value;
											dest5.SecureName = dest6;
										}
										src6 = src5.PermissionType;
										if (src6 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
										{
											dest6 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
											dest5.PermissionType = dest6;
										}
										dest5.Phone = src5.Phone;
										dest5.RowTimeStamps = src5.RowTimeStamps;
										if (src5.Orders != null)
										{
											dest5.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
											for (int i5 = 0; i5 < src5.Orders.Count; i5++)
											{
												src6 = src5.Orders[i5];
												dest6 = new Northwind.SL.Model.Order();
												dest6.ID = src6.ID;
												dest6.CustomerId = src6.CustomerId;
												dest6.EmployeeID = src6.EmployeeID;
												dest6.OrderDate = src6.OrderDate;
												dest6.RequiredDate = src6.RequiredDate;
												dest6.ShippedDate = src6.ShippedDate;
												dest6.ShipperId = src6.ShipperId;
												dest6.Freight = src6.Freight;
												dest6.ShipName = src6.ShipName;
												dest6.ShipAddress = src6.ShipAddress;
												dest6.ShipCity = src6.ShipCity;
												dest6.ShipRegion = src6.ShipRegion;
												dest6.ShipPostalCode = src6.ShipPostalCode;
												dest6.ShipCountry = src6.ShipCountry;
												dest6.RowTimeStamp = src6.RowTimeStamp;
												dest5.Orders.Add(dest6);
											}
										}
										dest4.Shipper = dest5;
									}
									dest3.Orders.Add(dest4);
								}
							}
							dest2.Employee = dest3;
						}
						src3 = src2.Shipper;
						if (src3 is Northwind.NET.Model.Shipper)
						{
							dest3 = new Northwind.SL.Model.Shipper();
							dest3.ID = src3.ID;
							dest3.Name = src3.Name;
							src4 = src3.SecureName;
							if (src4 is Northwind.NET.Security.SecureString)
							{
								dest4 = new Northwind.SL.Security.SecureString();
								src5 = src4.SecurityHandle;
								if (src5 is Northwind.NET.Security.SecurityHandle)
								{
									dest5 = new Northwind.SL.Security.SecurityHandle();
									dest5.Domain = src5.Domain;
									dest4.SecurityHandle = dest5;
								}
								dest4.Value = src4.Value;
								dest3.SecureName = dest4;
							}
							src4 = src3.PermissionType;
							if (src4 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
							{
								dest4 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
								dest3.PermissionType = dest4;
							}
							dest3.Phone = src3.Phone;
							dest3.RowTimeStamps = src3.RowTimeStamps;
							if (src3.Orders != null)
							{
								dest3.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
								for (int i3 = 0; i3 < src3.Orders.Count; i3++)
								{
									src4 = src3.Orders[i3];
									dest4 = new Northwind.SL.Model.Order();
									dest4.ID = src4.ID;
									dest4.CustomerId = src4.CustomerId;
									dest4.EmployeeID = src4.EmployeeID;
									dest4.OrderDate = src4.OrderDate;
									dest4.RequiredDate = src4.RequiredDate;
									dest4.ShippedDate = src4.ShippedDate;
									dest4.ShipperId = src4.ShipperId;
									dest4.Freight = src4.Freight;
									dest4.ShipName = src4.ShipName;
									dest4.ShipAddress = src4.ShipAddress;
									dest4.ShipCity = src4.ShipCity;
									dest4.ShipRegion = src4.ShipRegion;
									dest4.ShipPostalCode = src4.ShipPostalCode;
									dest4.ShipCountry = src4.ShipCountry;
									dest4.RowTimeStamp = src4.RowTimeStamp;
									src5 = src4.Employee;
									if (src5 is Northwind.NET.Model.Employee)
									{
										dest5 = new Northwind.SL.Model.Employee();
										dest5.ID = src5.ID;
										dest5.LastName = src5.LastName;
										dest5.FirstName = src5.FirstName;
										dest5.Title = src5.Title;
										dest5.TitleOfCourtesy = src5.TitleOfCourtesy;
										dest5.BirthDate = src5.BirthDate;
										dest5.HireDate = src5.HireDate;
										dest5.Address = src5.Address;
										dest5.City = src5.City;
										dest5.Region = src5.Region;
										dest5.PostalCode = src5.PostalCode;
										dest5.Country = src5.Country;
										dest5.HomePhone = src5.HomePhone;
										dest5.Extension = src5.Extension;
										dest5.Photo = src5.Photo;
										dest5.Notes = src5.Notes;
										dest5.ReportsTo = src5.ReportsTo;
										dest5.RowTimeStamps = src5.RowTimeStamps;
										if (src5.Orders != null)
										{
											dest5.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
											for (int i5 = 0; i5 < src5.Orders.Count; i5++)
											{
												src6 = src5.Orders[i5];
												dest6 = new Northwind.SL.Model.Order();
												dest6.ID = src6.ID;
												dest6.CustomerId = src6.CustomerId;
												dest6.EmployeeID = src6.EmployeeID;
												dest6.OrderDate = src6.OrderDate;
												dest6.RequiredDate = src6.RequiredDate;
												dest6.ShippedDate = src6.ShippedDate;
												dest6.ShipperId = src6.ShipperId;
												dest6.Freight = src6.Freight;
												dest6.ShipName = src6.ShipName;
												dest6.ShipAddress = src6.ShipAddress;
												dest6.ShipCity = src6.ShipCity;
												dest6.ShipRegion = src6.ShipRegion;
												dest6.ShipPostalCode = src6.ShipPostalCode;
												dest6.ShipCountry = src6.ShipCountry;
												dest6.RowTimeStamp = src6.RowTimeStamp;
												dest5.Orders.Add(dest6);
											}
										}
										dest4.Employee = dest5;
									}
									dest3.Orders.Add(dest4);
								}
							}
							dest2.Shipper = dest3;
						}
						dest1.Orders.Add(dest2);
					}
				}
				dest0.Customer = dest1;
			}
			src1 = src0.Employee;
			if (src1 is Northwind.NET.Model.Employee)
			{
				dest1 = new Northwind.SL.Model.Employee();
				dest1.ID = src1.ID;
				dest1.LastName = src1.LastName;
				dest1.FirstName = src1.FirstName;
				dest1.Title = src1.Title;
				dest1.TitleOfCourtesy = src1.TitleOfCourtesy;
				dest1.BirthDate = src1.BirthDate;
				dest1.HireDate = src1.HireDate;
				dest1.Address = src1.Address;
				dest1.City = src1.City;
				dest1.Region = src1.Region;
				dest1.PostalCode = src1.PostalCode;
				dest1.Country = src1.Country;
				dest1.HomePhone = src1.HomePhone;
				dest1.Extension = src1.Extension;
				dest1.Photo = src1.Photo;
				dest1.Notes = src1.Notes;
				dest1.ReportsTo = src1.ReportsTo;
				dest1.RowTimeStamps = src1.RowTimeStamps;
				if (src1.Orders != null)
				{
					dest1.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
					for (int i1 = 0; i1 < src1.Orders.Count; i1++)
					{
						src2 = src1.Orders[i1];
						dest2 = new Northwind.SL.Model.Order();
						dest2.ID = src2.ID;
						dest2.CustomerId = src2.CustomerId;
						dest2.EmployeeID = src2.EmployeeID;
						dest2.OrderDate = src2.OrderDate;
						dest2.RequiredDate = src2.RequiredDate;
						dest2.ShippedDate = src2.ShippedDate;
						dest2.ShipperId = src2.ShipperId;
						dest2.Freight = src2.Freight;
						dest2.ShipName = src2.ShipName;
						dest2.ShipAddress = src2.ShipAddress;
						dest2.ShipCity = src2.ShipCity;
						dest2.ShipRegion = src2.ShipRegion;
						dest2.ShipPostalCode = src2.ShipPostalCode;
						dest2.ShipCountry = src2.ShipCountry;
						dest2.RowTimeStamp = src2.RowTimeStamp;
						src3 = src2.Customer;
						if (src3 is Northwind.NET.Model.Customer)
						{
							dest3 = new Northwind.SL.Model.Customer();
							dest3.ID = src3.ID;
							dest3.Code = src3.Code;
							dest3.Name = src3.Name;
							src4 = src3.SecureName;
							if (src4 is Northwind.NET.Security.SecureString)
							{
								dest4 = new Northwind.SL.Security.SecureString();
								src5 = src4.SecurityHandle;
								if (src5 is Northwind.NET.Security.SecurityHandle)
								{
									dest5 = new Northwind.SL.Security.SecurityHandle();
									dest5.Domain = src5.Domain;
									dest4.SecurityHandle = dest5;
								}
								dest4.Value = src4.Value;
								dest3.SecureName = dest4;
							}
							src4 = src3.PermissionType;
							if (src4 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
							{
								dest4 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
								dest3.PermissionType = dest4;
							}
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.ContactName = src3.ContactName;
							dest3.ContactTitle = src3.ContactTitle;
							dest3.Address = src3.Address;
							dest3.City = src3.City;
							dest3.Region = src3.Region;
							dest3.PostalCode = src3.PostalCode;
							dest3.Country = src3.Country;
							dest3.Phone = src3.Phone;
							dest3.Fax = src3.Fax;
							dest3.RowTimeStamps = src3.RowTimeStamps;
							if (src3.Orders != null)
							{
								dest3.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
								for (int i3 = 0; i3 < src3.Orders.Count; i3++)
								{
									src4 = src3.Orders[i3];
									dest4 = new Northwind.SL.Model.Order();
									dest4.ID = src4.ID;
									dest4.CustomerId = src4.CustomerId;
									dest4.EmployeeID = src4.EmployeeID;
									dest4.OrderDate = src4.OrderDate;
									dest4.RequiredDate = src4.RequiredDate;
									dest4.ShippedDate = src4.ShippedDate;
									dest4.ShipperId = src4.ShipperId;
									dest4.Freight = src4.Freight;
									dest4.ShipName = src4.ShipName;
									dest4.ShipAddress = src4.ShipAddress;
									dest4.ShipCity = src4.ShipCity;
									dest4.ShipRegion = src4.ShipRegion;
									dest4.ShipPostalCode = src4.ShipPostalCode;
									dest4.ShipCountry = src4.ShipCountry;
									dest4.RowTimeStamp = src4.RowTimeStamp;
									src5 = src4.Shipper;
									if (src5 is Northwind.NET.Model.Shipper)
									{
										dest5 = new Northwind.SL.Model.Shipper();
										dest5.ID = src5.ID;
										dest5.Name = src5.Name;
										src6 = src5.SecureName;
										if (src6 is Northwind.NET.Security.SecureString)
										{
											dest6 = new Northwind.SL.Security.SecureString();
											src7 = src6.SecurityHandle;
											if (src7 is Northwind.NET.Security.SecurityHandle)
											{
												dest7 = new Northwind.SL.Security.SecurityHandle();
												dest7.Domain = src7.Domain;
												dest6.SecurityHandle = dest7;
											}
											dest6.Value = src6.Value;
											dest5.SecureName = dest6;
										}
										src6 = src5.PermissionType;
										if (src6 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
										{
											dest6 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
											dest5.PermissionType = dest6;
										}
										dest5.Phone = src5.Phone;
										dest5.RowTimeStamps = src5.RowTimeStamps;
										if (src5.Orders != null)
										{
											dest5.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
											for (int i5 = 0; i5 < src5.Orders.Count; i5++)
											{
												src6 = src5.Orders[i5];
												dest6 = new Northwind.SL.Model.Order();
												dest6.ID = src6.ID;
												dest6.CustomerId = src6.CustomerId;
												dest6.EmployeeID = src6.EmployeeID;
												dest6.OrderDate = src6.OrderDate;
												dest6.RequiredDate = src6.RequiredDate;
												dest6.ShippedDate = src6.ShippedDate;
												dest6.ShipperId = src6.ShipperId;
												dest6.Freight = src6.Freight;
												dest6.ShipName = src6.ShipName;
												dest6.ShipAddress = src6.ShipAddress;
												dest6.ShipCity = src6.ShipCity;
												dest6.ShipRegion = src6.ShipRegion;
												dest6.ShipPostalCode = src6.ShipPostalCode;
												dest6.ShipCountry = src6.ShipCountry;
												dest6.RowTimeStamp = src6.RowTimeStamp;
												dest5.Orders.Add(dest6);
											}
										}
										dest4.Shipper = dest5;
									}
									dest3.Orders.Add(dest4);
								}
							}
							dest2.Customer = dest3;
						}
						src3 = src2.Shipper;
						if (src3 is Northwind.NET.Model.Shipper)
						{
							dest3 = new Northwind.SL.Model.Shipper();
							dest3.ID = src3.ID;
							dest3.Name = src3.Name;
							src4 = src3.SecureName;
							if (src4 is Northwind.NET.Security.SecureString)
							{
								dest4 = new Northwind.SL.Security.SecureString();
								src5 = src4.SecurityHandle;
								if (src5 is Northwind.NET.Security.SecurityHandle)
								{
									dest5 = new Northwind.SL.Security.SecurityHandle();
									dest5.Domain = src5.Domain;
									dest4.SecurityHandle = dest5;
								}
								dest4.Value = src4.Value;
								dest3.SecureName = dest4;
							}
							src4 = src3.PermissionType;
							if (src4 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
							{
								dest4 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
								dest3.PermissionType = dest4;
							}
							dest3.Phone = src3.Phone;
							dest3.RowTimeStamps = src3.RowTimeStamps;
							if (src3.Orders != null)
							{
								dest3.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
								for (int i3 = 0; i3 < src3.Orders.Count; i3++)
								{
									src4 = src3.Orders[i3];
									dest4 = new Northwind.SL.Model.Order();
									dest4.ID = src4.ID;
									dest4.CustomerId = src4.CustomerId;
									dest4.EmployeeID = src4.EmployeeID;
									dest4.OrderDate = src4.OrderDate;
									dest4.RequiredDate = src4.RequiredDate;
									dest4.ShippedDate = src4.ShippedDate;
									dest4.ShipperId = src4.ShipperId;
									dest4.Freight = src4.Freight;
									dest4.ShipName = src4.ShipName;
									dest4.ShipAddress = src4.ShipAddress;
									dest4.ShipCity = src4.ShipCity;
									dest4.ShipRegion = src4.ShipRegion;
									dest4.ShipPostalCode = src4.ShipPostalCode;
									dest4.ShipCountry = src4.ShipCountry;
									dest4.RowTimeStamp = src4.RowTimeStamp;
									src5 = src4.Customer;
									if (src5 is Northwind.NET.Model.Customer)
									{
										dest5 = new Northwind.SL.Model.Customer();
										dest5.ID = src5.ID;
										dest5.Code = src5.Code;
										dest5.Name = src5.Name;
										src6 = src5.SecureName;
										if (src6 is Northwind.NET.Security.SecureString)
										{
											dest6 = new Northwind.SL.Security.SecureString();
											src7 = src6.SecurityHandle;
											if (src7 is Northwind.NET.Security.SecurityHandle)
											{
												dest7 = new Northwind.SL.Security.SecurityHandle();
												dest7.Domain = src7.Domain;
												dest6.SecurityHandle = dest7;
											}
											dest6.Value = src6.Value;
											dest5.SecureName = dest6;
										}
										src6 = src5.PermissionType;
										if (src6 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
										{
											dest6 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
											dest5.PermissionType = dest6;
										}
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.ContactName = src5.ContactName;
										dest5.ContactTitle = src5.ContactTitle;
										dest5.Address = src5.Address;
										dest5.City = src5.City;
										dest5.Region = src5.Region;
										dest5.PostalCode = src5.PostalCode;
										dest5.Country = src5.Country;
										dest5.Phone = src5.Phone;
										dest5.Fax = src5.Fax;
										dest5.RowTimeStamps = src5.RowTimeStamps;
										if (src5.Orders != null)
										{
											dest5.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
											for (int i5 = 0; i5 < src5.Orders.Count; i5++)
											{
												src6 = src5.Orders[i5];
												dest6 = new Northwind.SL.Model.Order();
												dest6.ID = src6.ID;
												dest6.CustomerId = src6.CustomerId;
												dest6.EmployeeID = src6.EmployeeID;
												dest6.OrderDate = src6.OrderDate;
												dest6.RequiredDate = src6.RequiredDate;
												dest6.ShippedDate = src6.ShippedDate;
												dest6.ShipperId = src6.ShipperId;
												dest6.Freight = src6.Freight;
												dest6.ShipName = src6.ShipName;
												dest6.ShipAddress = src6.ShipAddress;
												dest6.ShipCity = src6.ShipCity;
												dest6.ShipRegion = src6.ShipRegion;
												dest6.ShipPostalCode = src6.ShipPostalCode;
												dest6.ShipCountry = src6.ShipCountry;
												dest6.RowTimeStamp = src6.RowTimeStamp;
												dest5.Orders.Add(dest6);
											}
										}
										dest4.Customer = dest5;
									}
									dest3.Orders.Add(dest4);
								}
							}
							dest2.Shipper = dest3;
						}
						dest1.Orders.Add(dest2);
					}
				}
				dest0.Employee = dest1;
			}
			src1 = src0.Shipper;
			if (src1 is Northwind.NET.Model.Shipper)
			{
				dest1 = new Northwind.SL.Model.Shipper();
				dest1.ID = src1.ID;
				dest1.Name = src1.Name;
				src2 = src1.SecureName;
				if (src2 is Northwind.NET.Security.SecureString)
				{
					dest2 = new Northwind.SL.Security.SecureString();
					src3 = src2.SecurityHandle;
					if (src3 is Northwind.NET.Security.SecurityHandle)
					{
						dest3 = new Northwind.SL.Security.SecurityHandle();
						dest3.Domain = src3.Domain;
						dest2.SecurityHandle = dest3;
					}
					dest2.Value = src2.Value;
					dest1.SecureName = dest2;
				}
				src2 = src1.PermissionType;
				if (src2 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
				{
					dest2 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
					dest1.PermissionType = dest2;
				}
				dest1.Phone = src1.Phone;
				dest1.RowTimeStamps = src1.RowTimeStamps;
				if (src1.Orders != null)
				{
					dest1.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
					for (int i1 = 0; i1 < src1.Orders.Count; i1++)
					{
						src2 = src1.Orders[i1];
						dest2 = new Northwind.SL.Model.Order();
						dest2.ID = src2.ID;
						dest2.CustomerId = src2.CustomerId;
						dest2.EmployeeID = src2.EmployeeID;
						dest2.OrderDate = src2.OrderDate;
						dest2.RequiredDate = src2.RequiredDate;
						dest2.ShippedDate = src2.ShippedDate;
						dest2.ShipperId = src2.ShipperId;
						dest2.Freight = src2.Freight;
						dest2.ShipName = src2.ShipName;
						dest2.ShipAddress = src2.ShipAddress;
						dest2.ShipCity = src2.ShipCity;
						dest2.ShipRegion = src2.ShipRegion;
						dest2.ShipPostalCode = src2.ShipPostalCode;
						dest2.ShipCountry = src2.ShipCountry;
						dest2.RowTimeStamp = src2.RowTimeStamp;
						src3 = src2.Customer;
						if (src3 is Northwind.NET.Model.Customer)
						{
							dest3 = new Northwind.SL.Model.Customer();
							dest3.ID = src3.ID;
							dest3.Code = src3.Code;
							dest3.Name = src3.Name;
							src4 = src3.SecureName;
							if (src4 is Northwind.NET.Security.SecureString)
							{
								dest4 = new Northwind.SL.Security.SecureString();
								src5 = src4.SecurityHandle;
								if (src5 is Northwind.NET.Security.SecurityHandle)
								{
									dest5 = new Northwind.SL.Security.SecurityHandle();
									dest5.Domain = src5.Domain;
									dest4.SecurityHandle = dest5;
								}
								dest4.Value = src4.Value;
								dest3.SecureName = dest4;
							}
							src4 = src3.PermissionType;
							if (src4 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
							{
								dest4 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
								dest3.PermissionType = dest4;
							}
							src4 = src3.SecurityHandle;
							if (src4 is Northwind.NET.Security.SecurityHandle)
							{
								dest4 = new Northwind.SL.Security.SecurityHandle();
								dest4.Domain = src4.Domain;
								dest3.SecurityHandle = dest4;
							}
							dest3.ContactName = src3.ContactName;
							dest3.ContactTitle = src3.ContactTitle;
							dest3.Address = src3.Address;
							dest3.City = src3.City;
							dest3.Region = src3.Region;
							dest3.PostalCode = src3.PostalCode;
							dest3.Country = src3.Country;
							dest3.Phone = src3.Phone;
							dest3.Fax = src3.Fax;
							dest3.RowTimeStamps = src3.RowTimeStamps;
							if (src3.Orders != null)
							{
								dest3.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
								for (int i3 = 0; i3 < src3.Orders.Count; i3++)
								{
									src4 = src3.Orders[i3];
									dest4 = new Northwind.SL.Model.Order();
									dest4.ID = src4.ID;
									dest4.CustomerId = src4.CustomerId;
									dest4.EmployeeID = src4.EmployeeID;
									dest4.OrderDate = src4.OrderDate;
									dest4.RequiredDate = src4.RequiredDate;
									dest4.ShippedDate = src4.ShippedDate;
									dest4.ShipperId = src4.ShipperId;
									dest4.Freight = src4.Freight;
									dest4.ShipName = src4.ShipName;
									dest4.ShipAddress = src4.ShipAddress;
									dest4.ShipCity = src4.ShipCity;
									dest4.ShipRegion = src4.ShipRegion;
									dest4.ShipPostalCode = src4.ShipPostalCode;
									dest4.ShipCountry = src4.ShipCountry;
									dest4.RowTimeStamp = src4.RowTimeStamp;
									src5 = src4.Employee;
									if (src5 is Northwind.NET.Model.Employee)
									{
										dest5 = new Northwind.SL.Model.Employee();
										dest5.ID = src5.ID;
										dest5.LastName = src5.LastName;
										dest5.FirstName = src5.FirstName;
										dest5.Title = src5.Title;
										dest5.TitleOfCourtesy = src5.TitleOfCourtesy;
										dest5.BirthDate = src5.BirthDate;
										dest5.HireDate = src5.HireDate;
										dest5.Address = src5.Address;
										dest5.City = src5.City;
										dest5.Region = src5.Region;
										dest5.PostalCode = src5.PostalCode;
										dest5.Country = src5.Country;
										dest5.HomePhone = src5.HomePhone;
										dest5.Extension = src5.Extension;
										dest5.Photo = src5.Photo;
										dest5.Notes = src5.Notes;
										dest5.ReportsTo = src5.ReportsTo;
										dest5.RowTimeStamps = src5.RowTimeStamps;
										if (src5.Orders != null)
										{
											dest5.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
											for (int i5 = 0; i5 < src5.Orders.Count; i5++)
											{
												src6 = src5.Orders[i5];
												dest6 = new Northwind.SL.Model.Order();
												dest6.ID = src6.ID;
												dest6.CustomerId = src6.CustomerId;
												dest6.EmployeeID = src6.EmployeeID;
												dest6.OrderDate = src6.OrderDate;
												dest6.RequiredDate = src6.RequiredDate;
												dest6.ShippedDate = src6.ShippedDate;
												dest6.ShipperId = src6.ShipperId;
												dest6.Freight = src6.Freight;
												dest6.ShipName = src6.ShipName;
												dest6.ShipAddress = src6.ShipAddress;
												dest6.ShipCity = src6.ShipCity;
												dest6.ShipRegion = src6.ShipRegion;
												dest6.ShipPostalCode = src6.ShipPostalCode;
												dest6.ShipCountry = src6.ShipCountry;
												dest6.RowTimeStamp = src6.RowTimeStamp;
												dest5.Orders.Add(dest6);
											}
										}
										dest4.Employee = dest5;
									}
									dest3.Orders.Add(dest4);
								}
							}
							dest2.Customer = dest3;
						}
						src3 = src2.Employee;
						if (src3 is Northwind.NET.Model.Employee)
						{
							dest3 = new Northwind.SL.Model.Employee();
							dest3.ID = src3.ID;
							dest3.LastName = src3.LastName;
							dest3.FirstName = src3.FirstName;
							dest3.Title = src3.Title;
							dest3.TitleOfCourtesy = src3.TitleOfCourtesy;
							dest3.BirthDate = src3.BirthDate;
							dest3.HireDate = src3.HireDate;
							dest3.Address = src3.Address;
							dest3.City = src3.City;
							dest3.Region = src3.Region;
							dest3.PostalCode = src3.PostalCode;
							dest3.Country = src3.Country;
							dest3.HomePhone = src3.HomePhone;
							dest3.Extension = src3.Extension;
							dest3.Photo = src3.Photo;
							dest3.Notes = src3.Notes;
							dest3.ReportsTo = src3.ReportsTo;
							dest3.RowTimeStamps = src3.RowTimeStamps;
							if (src3.Orders != null)
							{
								dest3.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
								for (int i3 = 0; i3 < src3.Orders.Count; i3++)
								{
									src4 = src3.Orders[i3];
									dest4 = new Northwind.SL.Model.Order();
									dest4.ID = src4.ID;
									dest4.CustomerId = src4.CustomerId;
									dest4.EmployeeID = src4.EmployeeID;
									dest4.OrderDate = src4.OrderDate;
									dest4.RequiredDate = src4.RequiredDate;
									dest4.ShippedDate = src4.ShippedDate;
									dest4.ShipperId = src4.ShipperId;
									dest4.Freight = src4.Freight;
									dest4.ShipName = src4.ShipName;
									dest4.ShipAddress = src4.ShipAddress;
									dest4.ShipCity = src4.ShipCity;
									dest4.ShipRegion = src4.ShipRegion;
									dest4.ShipPostalCode = src4.ShipPostalCode;
									dest4.ShipCountry = src4.ShipCountry;
									dest4.RowTimeStamp = src4.RowTimeStamp;
									src5 = src4.Customer;
									if (src5 is Northwind.NET.Model.Customer)
									{
										dest5 = new Northwind.SL.Model.Customer();
										dest5.ID = src5.ID;
										dest5.Code = src5.Code;
										dest5.Name = src5.Name;
										src6 = src5.SecureName;
										if (src6 is Northwind.NET.Security.SecureString)
										{
											dest6 = new Northwind.SL.Security.SecureString();
											src7 = src6.SecurityHandle;
											if (src7 is Northwind.NET.Security.SecurityHandle)
											{
												dest7 = new Northwind.SL.Security.SecurityHandle();
												dest7.Domain = src7.Domain;
												dest6.SecurityHandle = dest7;
											}
											dest6.Value = src6.Value;
											dest5.SecureName = dest6;
										}
										src6 = src5.PermissionType;
										if (src6 is System.Nullable<Northwind.NET.Security.PermissionTypeEnum>)
										{
											dest6 = new System.Nullable<Northwind.SL.Security.PermissionTypeEnum>(default(Northwind.SL.Security.PermissionTypeEnum));
											dest5.PermissionType = dest6;
										}
										src6 = src5.SecurityHandle;
										if (src6 is Northwind.NET.Security.SecurityHandle)
										{
											dest6 = new Northwind.SL.Security.SecurityHandle();
											dest6.Domain = src6.Domain;
											dest5.SecurityHandle = dest6;
										}
										dest5.ContactName = src5.ContactName;
										dest5.ContactTitle = src5.ContactTitle;
										dest5.Address = src5.Address;
										dest5.City = src5.City;
										dest5.Region = src5.Region;
										dest5.PostalCode = src5.PostalCode;
										dest5.Country = src5.Country;
										dest5.Phone = src5.Phone;
										dest5.Fax = src5.Fax;
										dest5.RowTimeStamps = src5.RowTimeStamps;
										if (src5.Orders != null)
										{
											dest5.Orders = new System.Collections.Generic.List<Northwind.SL.Model.Order>();
											for (int i5 = 0; i5 < src5.Orders.Count; i5++)
											{
												src6 = src5.Orders[i5];
												dest6 = new Northwind.SL.Model.Order();
												dest6.ID = src6.ID;
												dest6.CustomerId = src6.CustomerId;
												dest6.EmployeeID = src6.EmployeeID;
												dest6.OrderDate = src6.OrderDate;
												dest6.RequiredDate = src6.RequiredDate;
												dest6.ShippedDate = src6.ShippedDate;
												dest6.ShipperId = src6.ShipperId;
												dest6.Freight = src6.Freight;
												dest6.ShipName = src6.ShipName;
												dest6.ShipAddress = src6.ShipAddress;
												dest6.ShipCity = src6.ShipCity;
												dest6.ShipRegion = src6.ShipRegion;
												dest6.ShipPostalCode = src6.ShipPostalCode;
												dest6.ShipCountry = src6.ShipCountry;
												dest6.RowTimeStamp = src6.RowTimeStamp;
												dest5.Orders.Add(dest6);
											}
										}
										dest4.Customer = dest5;
									}
									dest3.Orders.Add(dest4);
								}
							}
							dest2.Employee = dest3;
						}
						dest1.Orders.Add(dest2);
					}
				}
				dest0.Shipper = dest1;
			}
			return dest0;
		}
		public static Northwind.SL.Security.SecurityHandle Convert(this Northwind.NET.Security.SecurityHandle src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Security.SecurityHandle();
			dest0.Domain = src0.Domain;
			return dest0;
		}
		public static Northwind.SL.Security.SecureString Convert(this Northwind.NET.Security.SecureString src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Security.SecureString();
			src1 = src0.SecurityHandle;
			if (src1 is Northwind.NET.Security.SecurityHandle)
			{
				dest1 = new Northwind.SL.Security.SecurityHandle();
				dest1.Domain = src1.Domain;
				dest0.SecurityHandle = dest1;
			}
			dest0.Value = src0.Value;
			return dest0;
		}
		public static Northwind.SL.Security.PermissionTypeEnum Convert(this Northwind.NET.Security.PermissionTypeEnum src0)
		{
			dynamic dest0;
			dynamic src1, dest1, src2, dest2, src3, dest3, src4, dest4, src5, dest5, src6, dest6, src7, dest7, src8, dest8, src9, dest9, src10, dest10, src11, dest11, src12, dest12, src13, dest13, src14, dest14, src15, dest15, src16, dest16;

			dest0 = new Northwind.SL.Security.PermissionTypeEnum();
			return dest0;
		}

	}
}
